package com.swt.gap.dao;

import com.swt.gap.model.entity.TaskSubscribeRule;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

@Repository
public interface TaskSubscribeRuleDao {
    int deleteByPrimaryKey(Integer ruleId);

    int deleteByTaskId(Integer ruleId);

    int insertSelective(TaskSubscribeRule record);

    TaskSubscribeRule selectByPrimaryKey(Integer ruleId);

    List<TaskSubscribeRule> selectByTaskId(Integer taskId);

    List<TaskSubscribeRule> selectByTaskIds(@Param("taskIds") Set<Integer> taskIds);

    List<TaskSubscribeRule> selectAll();

    int updateByPrimaryKeySelective(TaskSubscribeRule record);

}